@import '../../style/var.less';
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fadeLeft {
  0% {
    right: 5%;
  }
  100% {
    right: 100%;
  }
}
@keyframes fadeInLeft {
  0% {
    right: 100%;
  }
  100% {
    right: 5%;
  }
}
@keyframes fadeInRight {
  0% {
    left: 100%;
  }
  100% {
    left: 5%;
  }
}
@keyframes fadeOutRight {
  0% {
    left: 5%;
    opacity: 0;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes fadeOutLeft {
  0% {
    right: 5%;
    opacity: 0;
  }
  100% {
    right: 100%;
    opacity: 0;
  }
}
@keyframes fadeOutBottom {
  0% {
    top: 240px;
  }
  100% {
    top: 600px;
  }
}
@keyframes fadeOutTop {
  0% {
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    opacity: 1;
  }
  100% {
    top: -50px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
  }
}
@keyframes fadeInTop {
  0% {
    top: -50px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
  }
  100% {
    top: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    opacity: 1;
  }
}

@keyframes fadeInBottom {
  0% {
    top: 640px;
    opacity: 1;
    height: 0;
  }
  100% {
    top: 180px;
    opacity: 1;
    height: 420px;
  }
}
@keyframes fadeInDrawer {
  0% {
    bottom: 300px;
    opacity: 1;
  }
  100% {
    bottom: 0;
    opacity: 1;
  }
}
@keyframes numberScaleOut {
  0% {
    font-size: 32px;
    transform: scale(1);
    transform-origin: center;
  }
  100% {
    font-size: 24px;
    transform: scale(0.8);
    transform-origin: top left;
  }
}
@keyframes numberScaleIn {
  0% {
    font-size: 24px;
    transform: scale(1);
  }
  100% {
    font-size: 32px !important;
    transform: scale(1.34);
  }
}
@keyframes numberWrapperScaleOut {
  0% {
    padding-top: 32px;
  }
  100% {
    padding-top: 20px;
  }
}
@keyframes numberWrapperScaleIn {
  0% {
    padding-top: 0;
  }
  100% {
    padding-top: 20px;
  }
}
.dark {
  .main {
    background: #2133a5 !important;
  }
}
.dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--r-neutral-bg2, #f2f4f7);
  .main {
    width: 100%;
    height: 220px;
    background: linear-gradient(108deg, #374bc9 0%, #1d31b0 100%);
    position: relative;
    overflow: hidden;
    .header {
      margin: 12px 20px;

      .icon {
        cursor: pointer;
      }
      .icon-copy,
      .icon-qrcode {
        cursor: pointer;
        width: 18px;
        height: 18px;
        circle {
          transition: opacity 0.2s;
        }
        &:hover {
          circle {
            opacity: 0.4;
          }
        }
      }
      .icon-copy {
        cursor: pointer;
        margin-left: 13px;
        path.copy_svg__checked {
          transform: scale(0);
        }
        path.copy_svg__copy {
          transform: scale(1);
        }
        path {
          transform-origin: center center;
          transition: transform 0.2s;
        }
        &.success {
          z-index: 10;
          path.copy_svg__copy {
            transform: scale(0);
          }
          path.copy_svg__checked {
            transform: scale(1);
          }
        }
      }
      .icon-qrcode {
        margin-left: 8px;
      }
      .icon-account-type {
        width: 18px;
        height: 18px;
        margin-right: 4px;
      }
      .icon-settings {
        position: absolute;
        right: 0;
        cursor: pointer;
        transition: transform 0.2s;
        transform: rotate(0deg);
        &:hover {
          transform: rotate(120deg);
        }
      }
    }
    .header-wrapper {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(40px);
      margin-right: 10px;
      border-radius: 6px;
      cursor: pointer;
      &:hover {
        background: rgba(255, 255, 255, 0.2);
      }
      span {
        display: flex;
        align-items: center;
        padding: 6px 8px;
      }
      .current-address {
        .address-viewer-text {
          margin-top: 2px;
        }
      }
    }
    .assets {
      .left {
        width: 100%;
        color: #fff;
        p {
          margin: 0;
        }

        .card {
          box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.24);
        }

        .amount {
          font-size: 32px;
          font-weight: bold;
          padding: 0px 10px;
          margin-top: 8px;
          display: flex;
          align-items: flex-end;
          gap: 8px;
          white-space: nowrap;
          width: fit-content;
          cursor: pointer;

          .amount-number {
            display: flex;
            width: auto;
            span {
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
            .icon-external-link {
              display: none;
              width: 12px;
              height: 12px;
              margin-left: 2px;
              margin-top: -4px;
            }
          }

          .balance-loading {
            .ant-skeleton.ant-skeleton-active {
              .ant-skeleton-avatar,
              .ant-skeleton-input {
                background: linear-gradient(
                  90deg,
                  rgba(255, 255, 255, 0.2) 25%,
                  rgba(255, 255, 255, 0.4) 37%,
                  rgba(255, 255, 255, 0.2) 63%
                );
                background-size: 400% 100%;
              }
            }
          }
          .icon-arrow-right {
            width: 24px;
            height: 24px;
          }
        }
        .extra {
          font-size: 12px;
          color: #fff;
          .icon-chain {
            width: 20px;
            height: 20px;
          }
        }
      }
      .right {
        width: 24px;
        display: flex;
        align-items: center;
        .icon {
          width: 24px;
          height: 24px;
        }
      }
    }

    .operation {
      display: flex;
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 344px;
      height: 48px;
      border-radius: 6px 6px 0 0;
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(40px);
      padding: 14px 0 14px 20px;
      z-index: 1;
      .operation-item {
        flex: 1;
        color: #fff;
        font-size: 14px;
        position: relative;
        padding: 6px 6px 6px 0;
        width: 166px;
        border-radius: 6px 0 0 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        cursor: pointer;
        position: relative;
        opacity: 0.8;
        &:nth-last-child(1) {
          margin-right: 0;
          border-right: 0;
          border-radius: 0 6px 0 0;
        }
        .icon-external-link {
          width: 10px;
          height: 10px;
          position: absolute;
          margin: 0;
          top: 4px;
          right: 4px;
          opacity: 0;
          transition: opacity 0.2s;
        }
        .icon {
          width: 20px;
          height: 20px;
          margin-right: 10px;
        }
        .pending-count {
          position: relative;
          font-size: 12px;
          text-align: center;
          width: 24px;
          height: 24px;
          line-height: 24px;
          margin-right: 4px;
          color: rgba(240, 242, 245, 0.8);
          .icon-pending {
            animation: spining 1.5s infinite linear;
            position: absolute;
            left: 0;
            top: 0;
            width: 24px;
            height: 24px;
            margin: 0;
          }
        }
        .icon-arrow-right {
          width: 14px;
          height: 14px;
          position: absolute;
          right: 6px;
          opacity: 0.6;
        }
        &__count {
          border-radius: 100%;
          font-size: 12px;
          color: #ffffff;
          text-align: center;
          position: absolute;
          display: flex;
          justify-items: center;
          justify-content: center;
          line-height: 20px;
          width: 20px;
          height: 20px;
          right: 36px;
          background: rgba(255, 255, 255, 0.2);
        }
        &__count__normal {
          font-size: 12px;
          position: absolute;
          display: flex;
          justify-content: center;
          color: #ffffff;
          width: 78px;
          height: 24px;
          right: 30px;
          background: rgba(255, 255, 255, 0.19);
          border-radius: 13px;
          align-items: center;
        }
      }
    }
    .listContainer {
      display: flex;
      height: 22px;
      margin-top: 20px;
      align-items: center;
      position: relative;
      .extra-link {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 1px 8px;
        border: 0.5px solid rgba(255, 255, 255, 0.5);
        border-radius: 90px;
        &-divider {
          height: 12px;
          border-left: 0.5px solid rgba(255, 255, 255, 0.4);
        }
        &-scan,
        &-debank {
          cursor: pointer;
          width: 20px;
          height: 20px;
        }
        &-scan {
          background: url('../../assets/dashboard/scan.svg');
          &:hover {
            background: url('../../assets/dashboard/scan-white.svg');
          }
        }
        &-debank {
          background: url('../../assets/dashboard/debank.svg');
          &:hover {
            background: url('../../assets/dashboard/debank-white.svg');
          }
        }
      }
      .token {
        cursor: pointer;
        font-size: 14px;
        padding: 4px 12px;
        line-height: 17px;
        opacity: 0.9;
        color: #ffffff;
        font-weight: normal;
        background: rgba(255, 255, 255, 0.1);
        border: 0.5px solid rgba(255, 255, 255, 0.3);
        box-sizing: border-box;
        border-radius: 4px;
        margin: 0 6px;
        &:nth-child(1) {
          margin-left: 0;
        }
        &:hover {
          background: rgba(255, 255, 255, 0.3);
        }
      }
      .showToken {
        background: rgba(255, 255, 255, 0.3);
      }
    }
  }
  .show-chain-bg {
    background: linear-gradient(301.21deg, #8ba4ff -14.63%, #8082ff 57.71%);
    min-height: 100vh;
    padding: 20px;
  }
  .fadeIn {
    opacity: 1;
    width: 360px;
    height: 468px;
    -webkit-animation: fadeIn 0.5s;
    animation: fadeIn 0.5s;
  }
  .fadeOut {
    opacity: 0;
    width: 0 !important;
    height: 0 !important;
    margin-top: 0 !important;
    -webkit-animation: fadeOut 0.5s;
    animation: fadeOut 0.5s;
  }
  .quickFadeOut {
    opacity: 0;
    width: 0 !important;
    height: 0 !important;
    margin-top: 0 !important;
    -webkit-animation: fadeOut 0.01s;
    animation: fadeOut 0.01s;
  }
  .fadeLeft {
    position: absolute;
    right: 100%;
    -webkit-animation: fadeLeft 0.3s;
    animation: fadeLeft 0.3s;
  }
  .fadeInLeft {
    position: absolute;
    right: 5%;
    width: 360px;
    -webkit-animation: fadeInLeft 0.3s;
    animation: fadeInLeft 0.3s;
  }
  .fadeInRight {
    position: absolute;
    left: 5%;
    width: 360px;
    -webkit-animation: fadeInRight 0.3s;
    animation: fadeInRight 0.3s;
  }
  .fadeOutRight {
    position: absolute;
    left: 100%;
    width: 360px;
    -webkit-animation: fadeOutRight 0.3s;
    animation: fadeOutRight 0.3s;
  }
  .fadeOutLeft {
    position: absolute;
    right: 100%;
    width: 360px;
    -webkit-animation: fadeOutLeft 0.3s;
    animation: fadeOutLeft 0.3s;
  }
  .fadeInBottom {
    position: absolute;
    top: 180px;
    height: 420px;
    -webkit-animation: fadeInBottom 0.5s;
    animation: fadeInBottom 0.5s;
  }
  .fadeInDrawer {
    position: absolute;
    bottom: 0;
    height: 40px;
    width: 400px;
    -webkit-animation: fadeInDrawer 0.5s;
    animation: fadeInDrawer 0.5s;
  }
  .fadeOutDrawer {
    position: absolute;
    bottom: 0;
    opacity: 0;
    width: 400px;
    transition: opacity 0.3s;
  }
  .hide {
    display: none !important;
  }
  .fadeOutBottom {
    position: absolute;
    width: 400px;
    top: 600px;
    -webkit-animation: fadeOutBottom 0.5s;
    animation: fadeOutBottom 0.5s;
  }
  .fadeOutTop {
    position: absolute;
    top: -50px;
    width: 400px;
    height: 0 !important;
    -webkit-animation: fadeOutTop 0.5s;
    animation: fadeOutTop 0.5s;
  }
  .fadeInTop {
    -webkit-animation: fadeInTop 0.5s;
    animation: fadeInTop 0.5s;
  }
  .numberScaleOut {
    font-size: 24px !important;
    transition: font-size 0.5s;
  }
  .numberScaleIn {
    font-size: 32px;
    transition: font-size 0.5s;
  }
  .numberWrapperScaleOut {
    padding-top: 0 !important;
    transition: padding-top 0.5s;
  }
  .numberWrapperScaleIn {
    padding-top: 20px;
    transition: adding-top 0.5s;
  }
  .tokenList {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 8px 20px rgba(35, 37, 130, 0.08);
    backdrop-filter: blur(80px);
    border-radius: 6px;
    margin-top: 12px;
    height: 468px;
    .search-wrapper {
      padding: 12px 16px 20px 12px;
      width: 100%;
      &.active {
        .ant-input-affix-wrapper {
          height: 40px;
          background: rgba(255, 255, 255, 0.3);
          border: 0.5px solid rgba(255, 255, 255, 0.5);
          box-sizing: border-box;
          border-radius: 4px;
          .ant-input {
            background: transparent;
            color: #ffffff;
            &::placeholder {
              color: #ffffff;
              opacity: 0.5;
            }
          }
        }
      }
      .ant-input-affix-wrapper::before {
        height: 16px;
        background: rgba(255, 255, 255, 0.1);
      }
      .ant-input-affix-wrapper {
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 0.5px solid rgba(255, 255, 255, 0.5);
        box-sizing: border-box;
        border-radius: 4px;
        .ant-input {
          background: transparent;
          color: #ffffff;
          &::placeholder {
            color: #ffffff;
            opacity: 0.5;
          }
        }
      }
      .ant-input-affix-wrapper-lg {
        background: rgba(255, 255, 255, 0.1);
        padding: 12px;
        border-radius: 4px;
        .ant-input {
          border-radius: 0;
        }
      }
      .closeIcon {
        width: 12px;
        height: 12px;
        color: #ffffff;
        margin-left: 16px;
        .pointer;
      }
    }

    .filter {
      font-weight: 400;
      font-size: 12px;
      line-height: 14px;
      text-decoration: underline;

      color: #ffffff;
      text-align: center;
      padding-top: 12px;
      width: 100%;
      cursor: pointer;
      opacity: 0.6;
    }

    .token-item {
      height: 31px;
      width: 360px;
      padding: 10px 12px;
      display: flex;
      align-items: center;
      border: 1px solid transparent;
      &:nth-last-child(1) {
        margin-bottom: 60px;
      }
      &:hover {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid #ffffff !important;
        box-sizing: border-box;
        border-radius: 6px;
      }
      .middle {
        display: flex;
        flex-direction: column;
        margin-left: 12px;
      }
      .right {
        text-align: right;
        display: flex;
        flex-direction: column;
        position: absolute;
        right: 12px;
        img {
          width: 30px;
          height: 30px;
        }
      }
      .add-token-icon {
        width: 20px !important;
        height: 20px !important;
        .pointer;
      }
      .token-amount {
        font-style: normal;
        font-weight: 500;
        font-size: 13px;
        line-height: 15px;
        margin-bottom: 2px;
        color: #ffffff;
      }
      .token-name {
        width: 200px;
        font-style: normal;
        font-weight: normal;
        font-size: 12px;
        line-height: 14px;
        color: #ffffff;
        opacity: 0.8;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .token-extra {
        font-weight: 400;
        font-size: 12px;
        line-height: 14px;
        text-align: center;
        color: #ffffff;
        opacity: 0.8;
      }
      .opacity-100 {
        opacity: 1;
      }
    }
    .no-added-token {
      font-weight: normal;
      font-size: 12px;
      line-height: 14px;
      text-align: center;
      margin: 114px auto;
      color: #ffffff;
      opacity: 0.8;
    }
  }
  .bottom-drawer {
    position: absolute;
    top: -40px;
    left: 0;
    width: 400px;
    height: 40px;
    .pointer;
  }
  .addressType__tooltip {
    .ant-tooltip-content {
      transform: translate(5px, 5px);
      top: 100px !important;
    }
    .ant-tooltip-arrow {
      right: 10px !important;
      bottom: -30px !important;
    }
  }
}
.copy-icon {
  cursor: pointer;
  z-index: 10;
}
.switch-address-modal {
  .ant-modal-close {
    right: 16px;
    top: 16px;
    .ant-modal-close-x {
      width: 72px;
      height: 24px;
    }
  }
  .ant-modal-title {
    text-align: left;
  }
  .close-icon {
    width: 72px;
    height: 24px;
    background: #ffffff;
    border: 0.5px solid @color-border;
    border-radius: 12px;
    padding: 1px;
    display: flex;
    .close-icon__action {
      width: 35px;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      &:nth-child(1) {
        border-radius: 12px 0px 0px 12px;
        &::after {
          content: '';
          position: absolute;
          right: 0;
          top: 50%;
          height: 12px;
          margin-top: -6px;
          width: 0.5px;
          background-color: @color-border;
        }
        &:hover {
          background-color: rgba(134, 151, 255, 0.2);
        }
      }
      &:nth-child(2) {
        border-radius: 0px 12px 12px 0px;
        &:hover {
          background-color: @color-bg;
        }
      }
      .icon {
        width: 16px;
        height: 16px;
        &.rolling {
          animation: spining 1s infinite;
        }
      }
    }
  }
  .modal-switch-address {
    .icon-checked {
      width: 20px;
      height: 20px;
      cursor: pointer;
    }
    .footer {
      margin-top: 24px;
      a {
        display: flex;
        color: var(--r-blue-default, #7084ff);
        font-size: 15px;
        line-height: 18px;
        font-weight: 500;
        justify-content: center;
        align-items: center;
        .icon-add {
          width: 16px;
          height: 16px;
          margin-right: 6px;
        }
      }
    }
  }
}

.qrcode-modal {
  .ant-modal-content {
    background-color: #fff;
    .ant-modal-body {
      height: 368px;
      canvas {
        margin: 0 auto;
      }
      .address {
        margin-top: 17px;
      }
    }
  }
}
.address-popover {
  width: 360px;
  top: -140px !important;
  height: 200px;
  .ant-popover-arrow {
    display: none;
  }
  .ant-modal-content {
    background: #ffffff;
  }
  .ant-modal-body {
    max-height: 510px;
    padding: 8px;
  }
  .brand-name {
    font-size: 16px;
    color: @color-title;
    font-weight: 500;
    margin: 2px 0 0 6px;
    .alias {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 165px;
      display: inline-block;
      vertical-align: middle;
    }
    cursor: default;
    .ant-input {
      width: 167px;
      height: 28px;
      background: @color-border;
      border-radius: 4px;
      box-sizing: border-box;
      padding-left: 2px;
    }
  }
  .edit-name {
    cursor: pointer;
    width: 11px;
    height: 11px;
    margin-left: 3px;
    display: inline-block;
  }
  .address-container {
    display: flex;
    font-size: 12px;
    margin-top: 12px;
    .address {
      margin-right: 8px;
      padding-top: 2px;
      max-width: 188px;
    }
  }
  .qrcode-container {
    width: 116px;
    height: 116px;
    border: 1px solid @color-border;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 6px 4px 4px 6px;
  }
  &__info {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 116px;
    align-items: center;
    background: @color-bg;
    border-radius: 4px;
    padding: 8px;
    .left-container {
      position: relative;
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 116px;
      .address-display {
        font-size: 13px;
        color: @color-comment-1;
        width: 185px;
        margin: 8px 7px 0 6px;
      }
      .import {
        display: inline-block;
        position: absolute;
        color: @color-comment-2;
        font-size: 12px;
        height: 16px;
        left: 6px;
        bottom: 0;
      }
    }
  }
  &__gnosis {
    margin-top: 9px;
    padding-top: 16px;
    min-height: 107px;
    background: @color-bg;
    border-radius: 4px;
    width: 100%;
    padding: 8px;
    .threshold {
      color: @color-title;
    }
    .loading-wrapper {
      height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      .icon-loading {
        transform: scale(0.78);
        animation: spining 1.5s infinite linear;
        margin-bottom: 12px;
      }
    }
    .admin-list {
      margin: 0;
      background: #ffffff;
      border-radius: 4px;
      width: 100%;
      padding: 0 7px;
      li {
        position: relative;
        display: flex;
        align-items: center;
        height: 40px;
        width: 295px;
        .address-viewer-text.normal {
          font-weight: 500;
          font-size: 13px;
          line-height: 15px;
          color: #3b3e4a;
          margin-right: 0;
        }
        .icon-tag {
          height: 16px;
          margin-left: 8px;
        }
        .address-type {
          flex: 1;
          display: flex;
          justify-content: flex-end;
          align-items: center;
          .icon-account-type {
            opacity: 0.4;
            width: 24px;
            height: 24px;
          }
        }
        &:nth-last-child(1) {
          margin-bottom: 0;
        }
        &::after {
          content: '';
          position: absolute;
          right: 0;
          bottom: 0;
          height: 1px;
          width: 100%;
          border-bottom: 1px solid @color-border;
        }
        &:nth-last-child(1)::after {
          border-bottom: 0;
        }
      }
    }
  }
}
.dashboard-name {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.switch-popover {
  width: 233px;
  max-height: 308px;
  left: 20px !important;
  .ant-popover-arrow {
    display: none;
  }
  .address-item {
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 4px;
    width: 233px;
    height: 52px;
    padding-left: 15px;
    border: 1px solid transparent;
    transition: background-color 0.3s;
    .click-name {
      max-width: 130px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      .list-alian-name {
        font-weight: 500;
        font-size: 14px;
        color: @color-title;
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        .address-hdpath-index {
          font-weight: 300;
          font-size: 12px;
          line-height: 16px;
          color: #b4bdcc;
          margin-left: 6px;
        }
      }
    }
    .address-color {
      color: @color-comment-2;
      font-size: 12px;
    }
    .money-color {
      color: @color-comment-1;
      font-size: 12px;
      position: absolute;
      right: 12px;
    }
    &:hover {
      background-color: var(--r-blue-light-1, #eef1ff);
      border: 1px solid var(--r-blue-default, #7084ff);
      border-radius: 4px;
    }
    &:nth-last-child(1)::after {
      border-bottom: 0;
    }
    [data-action='copyIcon'],
    .favorite-star {
      display: none;
    }

    &:hover .favorite-star,
    &:hover [data-action='copyIcon'],
    &.favorited .favorite-star {
      display: inline-block;
    }
  }
  .address-item::before,
  .address-item:last-child::after {
    content: '';
    position: absolute;
    left: 40px;
    right: 0;
    height: 1px;
    width: 100%;
    border-bottom: 1px solid @color-border;
  }

  .address-item::before {
    top: 0;
  }
  .address-item:last-child::after {
    bottom: 0;
    border-bottom: none;
  }

  .address-item:hover::before,
  .address-item:hover + .address-item::before,
  .address-item:first-child::before,
  .address-item:last-child:hover::after {
    display: none;
  }
  .ant-popover-inner-content {
    padding: 0 !important;
    background: #ffffff;
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    .no-other-address {
      height: 62px;
      width: 200px;
      padding: 24px 52px 22px 40px;
      font-size: 14px;
      border-radius: 6px;
      text-align: center;
      color: @color-comment-1;
    }
    .address-loading {
      display: flex;
      justify-content: center;
      margin: 56px auto 52px;
      flex-direction: column;
      font-size: 12px;
      opacity: 0.8;
      color: @color-comment-1;
      .icon-loading {
        color: @color-comment-1;
        transform: scale(0.78);
        animation: spining 1.5s infinite linear;
        margin-bottom: 12px;
        margin-left: 42px;
      }
    }
    .pop-add-address {
      cursor: pointer;
      width: 100%;
      height: 36px;
      font-size: 12px;
      text-align: center;
      background: #ffffff;
      border-radius: 0px 0px 6px 6px;
      border-top: 1px solid @color-border;
      padding-left: 15px;
      color: var(--r-blue-default, #7084ff);
      &:hover {
        background-color: var(--r-blue-light-1, #eef1ff);
      }
      img {
        width: 11px;
        height: 11px;
        margin-left: 4px;
      }
      p {
        margin-left: 15px;
        margin-bottom: 0;
        line-height: 14px;
      }
    }
  }
  .brand-name {
    font-size: 20px;
    color: @color-title;
    margin: 2px 7px 0 6px;
  }

  .edit-name {
    width: 11px;
    height: 11px;
    margin-left: 3px;
  }
  .qrcode-container {
    width: 100px;
    height: 100px;
    margin: 14px 0 16px 0;
    border: 1px solid @color-border;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 6px 4px 4px 6px;
  }
}
.balance-popover {
  width: 360px;
  left: 50% !important;
  margin-left: -180px !important;
  backdrop-filter: blur(16px);
  .ant-popover-arrow {
    left: 14px !important;
  }
  .ant-popover-inner-content {
    padding: 20px 16px;
  }
  ul {
    max-height: 385px;
    overflow: auto;
    margin-bottom: 0;
    li {
      line-height: 15px;
      align-items: center;
      margin-bottom: 16px;
      .chain-logo {
        width: 20px;
        height: 20px;
        margin-right: 8px;
      }
      .amount {
        color: @color-title;
        font-weight: 500;
        font-size: 13px;
        width: 106px;
        text-align: left;
        text-overflow: ellipsis;
        overflow: hidden;
        flex-shrink: 0;
      }
      .progress {
        position: relative;
        height: 8px;
        width: 157px;
        background-color: @color-border;
        border-radius: 10px;
        overflow: hidden;
        .inner {
          background-color: var(--r-blue-default, #7084ff);
          height: 8px;
          border-radius: 10px;
        }
      }
      .percent {
        flex: 1;
        color: @color-comment-1;
        font-size: 13px;
        font-weight: 500;
        text-align: right;
      }
      &:nth-last-child(1) {
        margin-bottom: 0;
      }
    }
  }
  ::-webkit-scrollbar {
    display: none;
  }
}

.default-wallet-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 32px;
  width: 100%;
  background-color: var(--r-blue-default, #7084ff);
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 28px;
  .icon-rabby-white {
    width: 14px;
    height: 14px;
    margin-right: 6px;
  }
  span {
    flex: 1;
  }
  .confirm-btn {
    border: 0.5px solid #ffffff;
    border-radius: 2px;
    color: #fff;
    text-align: center;
    width: 60px;
    height: 20px;
    line-height: 20px;
    background-color: transparent;
    transition: background-color 0.3s;
    &:hover {
      background-color: rgba(255, 255, 255, 0.2);
    }
  }
}

.metamask-conflict-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 32px;
  width: 100%;
  background-color: rgba(242, 156, 27, 0.2);
  font-size: 12px;
  color: #f29c1b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  .icon-metamask-warning {
    width: 18px;
    height: 17px;
    margin-right: 8px;
  }
  .icon-open-external {
    width: 12px;
    height: 12px;
    margin-left: 8px;
  }
}

.gnosis-wrong-chain-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 26px;
  width: 100%;
  background: linear-gradient(
      0deg,
      rgba(255, 176, 32, 0.2),
      rgba(255, 176, 32, 0.2)
    ),
    #ffffff;
  color: var(--r-neutral-title1, #192945);
  font-size: 12px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 99;
}

.external-link-modal {
  .ant-modal-body {
    padding-bottom: 20px;
  }
}
.first-notice {
  .ant-modal-header {
    background: var(--r-neutral-bg-1);
    text-align: left;
    border-bottom: 0;
  }
  .ant-modal-title {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 23px;
    color: var(--r-neutral-title-1);
    text-align: left;
  }
  .ant-modal-content {
    background: var(--r-neutral-bg-1);
    color: var(--r-neutral-title-1);
    .ant-modal-body {
      max-height: 420px;
      h2 {
        color: var(--r-neutral-title-1);
      }
      li {
        padding-left: 10px;
        position: relative;
        &::before {
          content: '';
          position: absolute;
          width: 4px;
          height: 4px;
          background-color: var(--r-neutral-title-1);
          border-radius: 100%;
          left: 0;
          top: 9px;
        }
      }
    }
  }
}
.pointer {
  cursor: pointer;
}
.loadingContainer {
  display: flex;
  justify-content: center;
  width: 100%;

  .nftLoadingContainer {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 8px 20px rgba(35, 37, 130, 0.08);
    backdrop-filter: blur(40px);

    border-radius: 6px;
    padding: 12px;
  }

  flex-direction: column;
  .icon-loading {
    margin-left: 36px;
    animation: spining 1.5s infinite linear;
  }
  .loading-text {
    margin-top: 18px;
    color: #ffffff;
    font-size: 14px;
    opacity: 0.8;
  }
  .ant-skeleton-input {
    background: rgba(255, 255, 255, 0.2);
  }
  .ant-skeleton.ant-skeleton-active {
    .ant-skeleton-avatar,
    .ant-skeleton-input {
      background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.4) 37%,
        rgba(255, 255, 255, 0.2) 63%
      );
      background-size: 400% 100%;
    }
  }
}
.no-data {
  display: flex;
  justify-content: center;
  margin: 135px auto;
  flex-direction: column;
  align-items: center;
  .loading-text {
    color: #ffffff;
    font-size: 14px;
    opacity: 0.8;
  }
}
.max-143 {
  max-width: 143px;
}
.no-name {
  color: @color-comment-1 !important;
}

.copyAddr {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.actionIcon {
  &:hover g {
    opacity: 0.9 !important;
  }
}

.authentication-modal {
  .ant-modal-body {
    padding-bottom: 16px;
  }
  .ant-form-item-has-error {
    .ant-input {
      border-color: #f24822 !important;
    }
  }
  &.custom-popup.is-support-darkmode {
    .ant-input {
      background: var(--r-neutral-card-1) !important;
    }
  }
}
